package jp.oesf.test;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class NextActivity extends Activity {

	/* (非 Javadoc)
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO 自動生成されたメソッド・スタブ
		super.onCreate(savedInstanceState);
		setContentView(R.layout.next);
	}

    public void onClickMainButton(View view) {
    	EditText editMessage = (EditText)findViewById(R.id.editText1);
    	EditText editMessage2 = (EditText)findViewById(R.id.editText2);

		Intent intent = new Intent(this, MainActivity.class);
		intent.putExtra("message1", editMessage.getText().toString());
		intent.putExtra("message2", editMessage2.getText().toString());

        setResult(Activity.RESULT_OK,intent);
        finish();

	}

}
